home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / util / sys / InstallerNG.lha / InstallerNG / developer / include / installerngmodule_base.h
C/C++ Source or Header  |  2000-06-12  |  790b  |  37 lines

  1.  
  2. #ifndef INSTALLERNG_MODULE_BASE_H
  3. #define INSTALLERNG_MODULE_BASE_H
  4.  
  5. /*
  6. **  $VER: installerngmodule_base.h 37.0 (12.06.2000)
  7. **  (C) by Jens Tröger
  8. **
  9. */
  10.  
  11. #include <exec/libraries.h>
  12.  
  13. #ifndef MAKE_ID
  14. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  15. #endif
  16.  
  17. // this magic constant identifies an arbitrary library as an installerNG module
  18. #define INSTALLERNGMODULE_MAGIC MAKE_ID('I','N','G','M')
  19.  
  20. // the module base
  21. struct InstallerNGModuleBase
  22. {
  23.   struct Library ingm_Library;  // the library structure itself
  24.   ULONG          ingm_Magic;    // the magic constant
  25. };
  26.  
  27. // StormC need this #pragma to determine the size of the library base
  28. #ifdef __STORMC__
  29. #ifdef __LINKMODULELIBRARY__
  30. #pragma libbase InstallerNGModuleBase
  31. #endif
  32. #endif
  33.  
  34. #endif
  35.  
  36.  
  37.